import service from '@/utils/request'
//查询列表
export const getListDataPage=(params,data)=> {
  return new Promise((resolve, reject) => {
    if(data.dateRange){
      data.createTimeStart=data.dateRange[0]
      data.createTimeEnd=data.dateRange[1]
      data.taskStartTime=data.dateRange[0]
      data.taskEndTime=data.dateRange[1]
    }
    service.post(params.url, data)
      .then(res => {
        resolve(res.data)
      })
  })
}